<template>
  <section class="ElTableDemo">
    <el-table :data="testData">
      <el-table-column label="姓名" prop="name" />
      <el-table-column label="年龄" prop="age" />
      <el-table-column label="数据">
        <template :slot-scope="{ scope }"
          ><span>{{ scope }}</span></template
        >
      </el-table-column>
    </el-table>
  </section>
</template>

<script>
export default {
  name: 'ElTableDemo',
  data() {
    return {
      testData: [
        {
          name: '张三',
          age: 18,
        },
      ],
    }
  },
  props: {},
  components: {},
  watch: {},
  computed: {},
  methods: {},
  created() {},
  mounted() {},
}
</script>

<style scoped lang="scss"></style>
